<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------


//---------------------------
//-----微信-------
//---------------------------
Route::group('wx',function () {
	Route::any('inlet', 'app/soft.auth/wxIndex')->name('微信公众号商城网页入口');  
	Route::any('scinlet', 'sucai/soft.auth/wxIndex')->name('微信公众号素材微站网页入口');  
	Route::any('payNotify', 'common/payNotify/wxPayNotice')->name('微信支付回调');
	Route::any('serve', 'common/WxService/wxConfig')->name('公众号服务');
    Route::any('getSignPackage', 'common/WxService/getSignPackage')->name('微信获取jsdk签名');  
	Route::any('getPubKey', 'common/system/getPubKey')->name('获取公钥1');
})->allowCrossDomain();


//---------------------------
//-----支付宝-------
//---------------------------
Route::group('alipay',function () {
	Route::any('aliPayNotify', 'common/payNotify/AliPayNotify')->name('付款成功回调');
})->allowCrossDomain();


//任务 
Route::group('task',function () {
	Route::any('open', 'common/task/open')->name('开启定时任务');
})->allowCrossDomain();


//手机端
Route::group('app',function () {
    Route::resource('dataOperate', 'common/DbData')->name('通用接口，数据操作');  
})->middleware(app\http\middleware\AuthTokenApp::class);


